package com.sjzsqjy.asdtiang.search;

public class ShiQiaoResultFormat {
	String code;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public float getLow() {
		return low;
	}
	public void setLow(float low) {
		this.low = low;
	}
	public float getHight() {
		return hight;
	}
	public void setHight(float hight) {
		this.hight = hight;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public int getSequence() {
		return sequence;
	}
	public void setSequence(int sequence) {
		this.sequence = sequence;
	}
	public String getIsNormal() {
		return isNormal;
	}
	public void setIsNormal(String isNormal) {
		this.isNormal = isNormal;
	}
	String name;
	String value;
	float low;
	float hight;
	String unit;
	int sequence;
	String isNormal;///是否在正常值-1小，0正常，1大于
	public void normal(){
		float intValue=Float.parseFloat(value);
		if(intValue<low){
			isNormal="↓";
		}
		else if(intValue>hight){
			isNormal="↑";
		}
		else{
			isNormal="";
		}
	}
	public int compareTo(ShiQiaoResultFormat o) {
		return this.sequence - o.sequence;
	 }
}
